package com.lin.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * StudentTeacherDTO
 *      DTO(Data Transfer Object): 数据传输对象
 *      用于封装查询结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StudentTeacherDTO {
    private Student student;
    private Teacher teacher;
    private List<Score> scores;

    public StudentTeacherDTO(Student student, List<Score> scores) {
        this.student = student;
        this.scores = scores;
    }
}
